package edu.lab3.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author Chb
 * date 2020-05-11
 */
public class VueFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException {
        // 开始转发
        servletRequest.getRequestDispatcher("/index.html").forward(servletRequest, servletResponse);
    }

}
